﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace JavaSubstitutes
{
    //since this is passed around everywhere, we'll use it to pass layoutroot so that it can be used as required,
    //adding helper functions as required
	public class GraphicsConfiguration
	{
        public readonly Canvas LayoutRoot;

        public GraphicsConfiguration(Canvas layoutRoot)
        {
            LayoutRoot = layoutRoot;
        }

		public WriteableBitmap createCompatibleImage(int width, int height, object ignored)
		{
            return new WriteableBitmap(width, height);			
		}
	}
}
